Menu

Wiki usage

Creative Commons License
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License.
Edit Sidebar
Main > ObjectiveMultipleExplosion

Main.ObjectiveMultipleExplosion History

Hide minor edits - Show changes to output

February 01, 2005, at 07:50 PM by bjarne
Added lines 1-72:
!Using multiple bombs in an objective map

This tutorial is just a short comment on how change the [[ObjectiveExplosion]] tutorial into using 2 or more bombs to complete the objective.

Index:

(:toc:)

!!What to change in the map

To blast more bombs: you will need more bombs. Follow the [[ObjectiveExplosion]] tutorial for the first bomb, and then follow it for the rest of the bombs as well with a small change...

All references to:

||border=1
||!Targetname||!Value||
||'''exploder_set'''||1||
||'''set'''||1||

...should be increased by 1 for each bomb beyond the first. So the second bomb would use:

||border=1
||!Targetname||!Value||
||'''exploder_set'''||2||
||'''set'''||2||

...and a third bomb:

||border=1
||!Targetname||!Value||
||'''exploder_set'''||3||
||'''set'''||3||

...guess what values to use for a fourth bomb ;)

!!What to change in the script

Follow the [[ObjectiveExplosion]] tutorial and do only one change to that script:

Change

----
@@level.targets_to_destroy = 1@@
----

...to the number of bombs you are using, like this for using two bombs:

----
@@level.targets_to_destroy = 2@@
----

!!Variants

The modification above forces the planting team to blow all bombs to complete their objective( like in the ''V2'' stock map ). By manipulating the value of ''level.targets_to_destroy'', you can create different winning conditions.

If you use 2 bombs, but keep the value of:

----
@@level.targets_to_destroy = 1@@
----

...you will make the planting team win when any of the bombs blow ( like in ''The Bridge'' stock map ).

If you use 3 bombs, but set the value of:

----
@@level.targets_to_destroy = 2@@
----

...you will make the planting team win when any 2 of the 3 bombs blow.

--[[Profiles/Bjarne|Bjarne]]

Recent Changes Printable View Page History Edit Page [Attributes] [Printable View] [WikiHelp]
Page last modified on February 01, 2005, at 07:50 PM